package com.ysu.yybk.controller;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ysu.yybk.VO.login.LoginVO;
import com.ysu.yybk.form.login.LoginForm;
import com.ysu.yybk.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 *
 * @author ：lhw
 * @date ：Created in 2019/11/25 17:33
 */
@RestController
public class LoginController {
    @Autowired
    LoginService loginService;

    @PostMapping("/v1/student/is_bind")
    public LoginVO studentLogin(@RequestBody LoginForm loginForm){

        LoginVO loginVO = loginService.studentLogin(loginForm.getCode());

        return loginVO;
    }
}
